package com.example.home_module;

import com.example.common.mvvm.model.BaseRespository;
import com.example.home_module.entity.VideoDataEntity;
import com.example.home_module.entity.VideoEntity;
import com.example.network_sdk.RetrofitManager;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

public class VideoRespository extends BaseRespository {
    //   offset=0&pageCount=10&tagId=0&tagType=all&userId=0
    public Observable getVideoData(int feedId, int pageCount, int userId){
        Observable<VideoEntity> videoEntityObservable = RetrofitManager.getInstance().getRetrofit().create(ApiService.class)
                .videoData(feedId+"", pageCount+"", userId+"");
        return checkNettWork(videoEntityObservable);
    }
}
